Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default cpp_compat to true #996

Closed
wants to merge 2 commits into from
Closed

Conversation

Sainan
Copy link

@Sainan Sainan commented Aug 23, 2024

I think there's no reason not to do this, since otherwise it's either extra work for maintainers of the Rust projects (by either creating separate C++ headers, or by creating a TOML file just to set this config), or for C++ users to wrap extern "C" around the #include.

This approach of ifdef'ing __cplusplus is used even in Lua, which is compatible with C89, so I think it's absolutely fine to generate this code, and I wouldn't expect any breakage.

@Sainan Sainan closed this Oct 27, 2024
@Sainan Sainan deleted the cpp_compat branch October 27, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants